package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@Controller
public class demo3 {

    @RequestMapping("/index")
    public String INDEX(){
        return "/index.html";
    }
    @ResponseBody
    @RequestMapping("/date")
    public String DATA(){
        return "/index.html";
    }
    @ResponseBody
    @RequestMapping("/date2")
    public String DATA2(){
        return "<h1>我是谁??</h1>";
    }

}
